<template>
	<div class="flexcc" style="width: 100vw; height: 100vh;">
    <div style="font-size: 16px; line-height: 40px; text-align: center;">
      <div v-if="all" class="flexcc">
        <img src="../../../static/img/yanzhengchenggong.png" style="width: 1rem; margin-bottom: 0.3rem;">
      </div>
      <div v-if="!all" class="flexcc">
        <img src="../../../static/img/yanzhengshibai.png" style="width: 1rem; margin-bottom: 0.3rem;">
      </div>
      <div v-if="all" style="margin-bottom: 0.3rem;">检测配置成功</div>
      <div v-if="!all"  style="margin-bottom: 0.3rem;">检测配置失败</div>

      <div v-if="all2">已成功转账</div>
      <div v-if="!all2">转账失败</div>
    </div>
	</div>
</template>

<script>
  var h = document.documentElement.clientWidth / 7.5 + 'px';
  document.documentElement.style.fontSize = h;
	export default {
		name: 'weixingongzhonghaoyanzheng',
		data() {
			return {
        all:""
			}
		},
		created() {

		},
		mounted() {
      document.title = "微信验证"

      axios.post('/api/wechat/verify/callback',{
        code:this.$route.query.code,
        verify_id:this.$route.query.suijishu
      }).then((response)=>{
      	if (response.data.msg.code == 0) {

          if(response.data.data != ''){
            this.all = response.data.data
          }
      	} else {
      		vant.Toast(response.data.msg.info);
      	}
      })

      axios.get('/api/wechat/verify/callback/result?verify_id='+this.$route.query.suijishu).then((response)=>{
      	if (response.data.msg.code == 0) {
          if(response.data.data != ''){
            this.all2 = response.data.data
          }

      	} else {
      		vant.Toast(response.data.msg.info);
      	}
      })
		},
		methods: {

		}
	}
</script>


<style scoped lang="less">
  .index{
    .af{ position: relative; z-index: 2;
      &:after{
        content: '';
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 100%;
        height: 6px;
        background: rgb(232, 237, 252);
        z-index: -1;
      }
    }
  }
</style>
